package com.masterclient.app.modules.firstpager.fragments.adapters;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.masterclient.app.R;
import com.eoner.baselibrary.bean.firstpager.AllSpecailBean;
import com.eoner.baselibrary.utils.GlideUtil;

/**
 * 作者：sean
 * 创建时间：2017/8/14 16:16
 * 功能说明：
 */

public class AllSpecialAdapter extends BaseQuickAdapter<AllSpecailBean.DataBean.ShItemsBean,BaseViewHolder>{

    public AllSpecialAdapter() {
        super(R.layout.view_special_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, AllSpecailBean.DataBean.ShItemsBean item) {
        GlideUtil.displayImage(mContext,item.getSh_image(),(ImageView) helper.getView(R.id.iv_special));
//        if(!TextUtils.isEmpty(item.getSh_image())){
//            App.picasso.load(item.getSh_image()).fit().into((ImageView) helper.getView(R.id.iv_special));
//        }
        helper.setText(R.id.tv_special_title,item.getSh_name());
        helper.setText(R.id.tv_special_desc,item.getSh_subname());
    }


}
